a = 1
b = 1
def test():
    global a #test里面遇到的所有a 都去全局找!
    a = b + 1 #报错
    print(a)

test()
print(a)
